#-*- coding:UTF-8 -*-
#定义类实例
class AddrBookEntry(object):
    '''address book entry class'''
    def __init__(self, nm,ph):
        self.name = nm
        self.phone = ph
        print 'Created instance for:', self.name
    def __del__(self):
        pass
    def updatePhone(self, newph):
        self.phone = newph
        print 'Updated phone#for:', self.name
class EmplAddrBookEntry(AddrBookEntry):
    'Employee Address Book Entry class'
    def __init__(self, nm, ph, id,em):
        AddrBookEntry.__init__(self,nm,ph)
        self.empid = id
        self.email = em
    def updateEmail(self, newem):
        self.email = newem
        print 'Updated e-mail address for:', self.name

class C(object):
    foo = 100

if __name__ == '__main__':
    entry = AddrBookEntry('hanjiewu','18664534178')
    entry.updatePhone('12');
else:
    pass
